﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FooFun.Web.Controls;
using FAQFrameworks;
using FooFun.DataElements.Dtos;

namespace FooFun.Web.Controls
{
    public class AllTopicCount : DataElementControl
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            TopicManager topicManager = new TopicManager();
            IDataElement de = topicManager.CountAllTopic();

            this.DataElement = de;

        }
    }

    public class SealedTopicCount : DataElementControl
    {
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);

            TopicManager topicManager = new TopicManager();
            IDataElement de = topicManager.CountSealedTopic();

            this.DataElement = de;
        }
    }
}
